home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Memphis Amiga Group / MAG Disk (1990-01)(Memphis Amiga Group).zip / MAG Disk (1990-01)(Memphis Amiga Group).adf / sfstructs.c < prev    next >
C/C++ Source or Header  |  1989-12-29  |  46KB  |  1,430 lines

  1. #include "intuition/intuition.h"
  2.  
  3. /****************************************************/
  4. /*                            */
  5. /* Most of the structures in this file were created */
  6. /*          with PowerWindows 2.5, by:        */
  7. /*                            */
  8. /*        Inovatronics, Inc.            */
  9. /*        11311 Stemmons Freeway            */
  10. /*        Dallas, TX  75229            */
  11. /*        (214) 241-9515                      */
  12. /*                            */
  13. /****************************************************/
  14.  
  15. USHORT GadgetDownData[] = {
  16.     0xFFFF,0x8001,0x8181,0x8181,0x87E1,0x83C1,0x8181,0x8001,
  17.     0xFFFF
  18. };
  19.  
  20. struct Image GadgetDown = {
  21.     0,0,    /* XY origin relative to container TopLeft */
  22.     16,9,    /* Image width and height in pixels */
  23.     2,    /* number of bitplanes in Image */
  24.     GadgetDownData,     /* pointer to ImageData */
  25.     0x0001,0x0000,    /* PlanePick and PlaneOnOff */
  26.     NULL    /* next Image structure */
  27. };
  28.  
  29. USHORT GadgetUpData[] = {
  30.     0xFFFF,0x8001,0x8181,0x83C1,0x87E1,0x8181,0x8181,0x8001,
  31.     0xFFFF
  32. };
  33.  
  34. struct Image GadgetUp = {
  35.     0,0,    /* XY origin relative to container TopLeft */
  36.     16,9,    /* Image width and height in pixels */
  37.     2,    /* number of bitplanes in Image */
  38.     GadgetUpData,      /* pointer to ImageData */
  39.     0x0001,0x0000,    /* PlanePick and PlaneOnOff */
  40.     NULL    /* next Image structure */
  41. };
  42.  
  43. struct NewScreen NewScreenStructure = {
  44.     0,0,    /* screen XY origin relative to View */
  45.     640,200,    /* screen width and height */
  46.     2,    /* screen depth (number of bitplanes) */
  47.     0,1,    /* detail and block pens */
  48.     HIRES,    /* display modes for this screen */
  49.     CUSTOMSCREEN,    /* screen type */
  50.     NULL,    /* pointer to default screen font */
  51.     "ShowFont 4.0 © 1989 by Arthur Johnson Jr.",    /* screen title */
  52.     NULL,    /* first in list of custom screen gadgets */
  53.     NULL    /* pointer to custom BitMap structure */
  54. };
  55.  
  56. struct PropInfo PropSInfo = {
  57.     AUTOKNOB+FREEVERT,    /* PropInfo flags */
  58.     -1,-1,    /* horizontal and vertical pot values */
  59.     -1,-1,    /* horizontal and vertical body values */
  60. };
  61.  
  62. struct Image Image1 = {
  63.     0,0,    /* XY origin relative to container TopLeft */
  64.     8,167,    /* Image width and height in pixels */
  65.     0,    /* number of bitplanes in Image */
  66.     NULL,    /* pointer to ImageData */
  67.     0x0000,0x0000,    /* PlanePick and PlaneOnOff */
  68.     NULL    /* next Image structure */
  69. };
  70.  
  71. struct Gadget Prop = {
  72.     NULL,    /* next gadget */
  73.     -18,19, /* origin XY of hit box relative to window TopLeft */
  74.     16,-29, /* hit box width and height */
  75.     GRELRIGHT+GRELHEIGHT,    /* gadget flags */
  76.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  77.     PROPGADGET,    /* gadget type flags */
  78.     (APTR)&Image1,  /* gadget border or image to be rendered */
  79.     NULL,    /* alternate imagery for selection */
  80.     NULL,    /* first IntuiText structure */
  81.     NULL,    /* gadget mutual-exclude long word */
  82.     (APTR)&PropSInfo,       /* SpecialInfo structure */
  83.     2,    /* user-definable data */
  84.     NULL    /* pointer to user-definable data */
  85. };
  86.  
  87. struct Gadget Down = {
  88.     &Prop,    /* next gadget */
  89.     -18,-9, /* origin XY of hit box relative to window TopLeft */
  90.     18,9,    /* hit box width and height */
  91.     GADGIMAGE+GRELBOTTOM+GRELRIGHT, /* gadget flags */
  92.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  93.     BOOLGADGET,    /* gadget type flags */
  94.     (APTR)&GadgetDown,  /* gadget border or image to be rendered */
  95.     NULL,    /* alternate imagery for selection */
  96.     NULL,    /* first IntuiText structure */
  97.     NULL,    /* gadget mutual-exclude long word */
  98.     NULL,    /* SpecialInfo structure */
  99.     3,    /* user-definable data */
  100.     NULL    /* pointer to user-definable data */
  101. };
  102.  
  103. struct Gadget Up = {
  104.     &Down,    /* next gadget */
  105.     -18,10, /* origin XY of hit box relative to window TopLeft */
  106.     18,9,    /* hit box width and height */
  107.     GADGIMAGE+GRELRIGHT,    /* gadget flags */
  108.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  109.     BOOLGADGET,    /* gadget type flags */
  110.     (APTR)&GadgetUp,  /* gadget border or image to be rendered */
  111.     NULL,    /* alternate imagery for selection */
  112.     NULL,    /* first IntuiText structure */
  113.     NULL,    /* gadget mutual-exclude long word */
  114.     NULL,    /* SpecialInfo structure */
  115.     1,    /* user-definable data */
  116.     NULL    /* pointer to user-definable data */
  117. };
  118.  
  119. struct IntuiText IText1 = {
  120.     3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  121.     0,0,    /* XY origin relative to container TopLeft */
  122.     NULL,    /* font pointer or NULL for default */
  123.     "Screen Format",        /* pointer to text */
  124.     NULL    /* next IntuiText structure */
  125. };
  126.  
  127. struct MenuItem MenuItem1 = {
  128.     NULL,    /* next MenuItem structure */
  129.     0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  130.     144,8,    /* hit box width and height */
  131.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  132.     0,    /* each bit mutually-excludes a same-level Item */
  133.     (APTR)&IText1,  /* Item render  (IntuiText or Image or NULL) */
  134.     NULL,    /* Select render */
  135.     'S',    /* alternate command-key */
  136.     NULL,    /* SubItem list */
  137.     MENUNULL    /* filled in by Intuition for drag selections */
  138. };
  139.  
  140. struct Menu Menu3 = {
  141.     NULL,    /* next Menu structure */
  142.     124,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  143.     55,0,    /* Menu hit box width and height */
  144.     MENUENABLED,    /* Menu flags */
  145.     "Screen",       /* text of Menu name */
  146.     &MenuItem1    /* MenuItem linked list pointer */
  147. };
  148.  
  149. struct IntuiText IText2 = {
  150.     3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  151.     0,0,    /* XY origin relative to container TopLeft */
  152.     NULL,    /* font pointer or NULL for default */
  153.     "Font Selection",       /* pointer to text */
  154.     NULL    /* next IntuiText structure */
  155. };
  156.  
  157. struct MenuItem MenuItem3 = {
  158.     NULL,    /* next MenuItem structure */
  159.     0,9,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  160.     176,8,    /* hit box width and height */
  161.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  162.     0,    /* each bit mutually-excludes a same-level Item */
  163.     (APTR)&IText2,  /* Item render  (IntuiText or Image or NULL) */
  164.     NULL,    /* Select render */
  165.     'F',    /* alternate command-key */
  166.     NULL,    /* SubItem list */
  167.     MENUNULL    /* filled in by Intuition for drag selections */
  168. };
  169.  
  170. struct IntuiText IText3 = {
  171.     3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  172.     0,0,    /* XY origin relative to container TopLeft */
  173.     NULL,    /* font pointer or NULL for default */
  174.     "Change FONTS: dir",    /* pointer to text */
  175.     NULL    /* next IntuiText structure */
  176. };
  177.  
  178. struct MenuItem MenuItem2 = {
  179.     &MenuItem3,    /* next MenuItem structure */
  180.     0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  181.     176,8,    /* hit box width and height */
  182.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  183.     0,    /* each bit mutually-excludes a same-level Item */
  184.     (APTR)&IText3,  /* Item render  (IntuiText or Image or NULL) */
  185.     NULL,    /* Select render */
  186.     'C',    /* alternate command-key */
  187.     NULL,    /* SubItem list */
  188.     MENUNULL    /* filled in by Intuition for drag selections */
  189. };
  190.  
  191. struct Menu Menu2 = {
  192.     &Menu3, /* next Menu structure */
  193.     70,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  194.     47,0,    /* Menu hit box width and height */
  195.     MENUENABLED,    /* Menu flags */
  196.     "Fonts",        /* text of Menu name */
  197.     &MenuItem2    /* MenuItem linked list pointer */
  198. };
  199.  
  200. struct IntuiText IText4 = {
  201.     3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  202.     0,0,    /* XY origin relative to container TopLeft */
  203.     NULL,    /* font pointer or NULL for default */
  204.     "Quit", /* pointer to text */
  205.     NULL    /* next IntuiText structure */
  206. };
  207.  
  208. struct MenuItem MenuItem5 = {
  209.     NULL,    /* next MenuItem structure */
  210.     0,9,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  211.     80,8,    /* hit box width and height */
  212.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  213.     0,    /* each bit mutually-excludes a same-level Item */
  214.     (APTR)&IText4,  /* Item render  (IntuiText or Image or NULL) */
  215.     NULL,    /* Select render */
  216.     'Q',    /* alternate command-key */
  217.     NULL,    /* SubItem list */
  218.     MENUNULL    /* filled in by Intuition for drag selections */
  219. };
  220.  
  221. struct IntuiText IText5 = {
  222.     3,1,COMPLEMENT, /* front and back text pens, drawmode and fill byte */
  223.     0,0,    /* XY origin relative to container TopLeft */
  224.     NULL,    /* font pointer or NULL for default */
  225.     "About",        /* pointer to text */
  226.     NULL    /* next IntuiText structure */
  227. };
  228.  
  229. struct MenuItem MenuItem4 = {
  230.     &MenuItem5,    /* next MenuItem structure */
  231.     0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  232.     80,8,    /* hit box width and height */
  233.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  234.     0,    /* each bit mutually-excludes a same-level Item */
  235.     (APTR)&IText5,  /* Item render  (IntuiText or Image or NULL) */
  236.     NULL,    /* Select render */
  237.     'A',    /* alternate command-key */
  238.     NULL,    /* SubItem list */
  239.     MENUNULL    /* filled in by Intuition for drag selections */
  240. };
  241.  
  242. struct Menu Menu1 = {
  243.     &Menu2, /* next Menu structure */
  244.     0,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  245.     63,0,    /* Menu hit box width and height */
  246.     MENUENABLED,    /* Menu flags */
  247.     "Project",      /* text of Menu name */
  248.     &MenuItem4    /* MenuItem linked list pointer */
  249. };
  250.  
  251. struct NewWindow NewWindowStructure1 = {
  252.     0,0,    /* window XY origin relative to TopLeft of screen */
  253.     640,200,    /* window width and height */
  254.     0,1,    /* detail and block pens */
  255.     MOUSEBUTTONS+GADGETDOWN+GADGETUP+MENUPICK+CLOSEWINDOW,    /* IDCMP flags */
  256.     WINDOWCLOSE+ACTIVATE,    /* other window flags */
  257.     &Up,    /* first gadget in gadget list */
  258.     NULL,    /* custom CHECKMARK imagery */
  259.     NULL,    /* window title */
  260.     NULL,    /* custom screen pointer */
  261.     NULL,    /* custom bitmap */
  262.     -1,-1,    /* minimum width and height */
  263.     -1,-1,    /* maximum width and height */
  264.     CUSTOMSCREEN    /* destination screen type */
  265. };
  266.  
  267. struct Gadget FontStyleDown = {
  268.     NULL,    /* next gadget */
  269.     298,66, /* origin XY of hit box relative to window TopLeft */
  270.     18,9,    /* hit box width and height */
  271.     GADGIMAGE,    /* gadget flags */
  272.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  273.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  274.     (APTR)&GadgetDown,      /* gadget border or image to be rendered */
  275.     NULL,    /* alternate imagery for selection */
  276.     NULL,    /* first IntuiText structure */
  277.     NULL,    /* gadget mutual-exclude long word */
  278.     NULL,    /* SpecialInfo structure */
  279.     33,    /* user-definable data */
  280.     NULL    /* pointer to user-definable data */
  281. };
  282.  
  283. struct PropInfo FontFontStyleSInfo = {
  284.     AUTOKNOB+FREEVERT,    /* PropInfo flags */
  285.     -1,-1,    /* horizontal and vertical pot values */
  286.     -1,-1,    /* horizontal and vertical body values */
  287. };
  288.  
  289. struct Image FontImage5 = {
  290.     0,0,    /* XY origin relative to container TopLeft */
  291.     8,48,    /* Image width and height in pixels */
  292.     0,    /* number of bitplanes in Image */
  293.     NULL,    /* pointer to ImageData */
  294.     0x0000,0x0000,    /* PlanePick and PlaneOnOff */
  295.     NULL    /* next Image structure */
  296. };
  297.  
  298. struct Gadget FontStyle = {
  299.     &FontStyleDown, /* next gadget */
  300.     298,14, /* origin XY of hit box relative to window TopLeft */
  301.     16,52,    /* hit box width and height */
  302.     NULL,    /* gadget flags */
  303.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  304.     PROPGADGET+REQGADGET,    /* gadget type flags */
  305.     (APTR)&FontImage5,      /* gadget border or image to be rendered */
  306.     NULL,    /* alternate imagery for selection */
  307.     NULL,    /* first IntuiText structure */
  308.     NULL,    /* gadget mutual-exclude long word */
  309.     (APTR)&FontFontStyleSInfo,      /* SpecialInfo structure */
  310.     32,    /* user-definable data */
  311.     NULL    /* pointer to user-definable data */
  312. };
  313.  
  314. struct Gadget FontStyleUp = {
  315.     &FontStyle,    /* next gadget */
  316.     298,5,    /* origin XY of hit box relative to window TopLeft */
  317.     18,9,    /* hit box width and height */
  318.     GADGIMAGE,    /* gadget flags */
  319.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  320.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  321.     (APTR)&GadgetUp,      /* gadget border or image to be rendered */
  322.     NULL,    /* alternate imagery for selection */
  323.     NULL,    /* first IntuiText structure */
  324.     NULL,    /* gadget mutual-exclude long word */
  325.     NULL,    /* SpecialInfo structure */
  326.     31,    /* user-definable data */
  327.     NULL    /* pointer to user-definable data */
  328. };
  329.  
  330. SHORT FontBorderVectors1[] = {
  331.     0,0,
  332.     60,0,
  333.     60,16,
  334.     0,16,
  335.     0,0
  336. };
  337. struct Border FontBorder1 = {
  338.     -1,-1,    /* XY origin relative to container TopLeft */
  339.     1,0,JAM1,    /* front pen, back pen and drawmode */
  340.     5,    /* number of XY vectors */
  341.     FontBorderVectors1,    /* pointer to XY vectors */
  342.     NULL    /* next border in list */
  343. };
  344.  
  345. struct IntuiText FontIText6 = {
  346.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  347.     6,4,    /* XY origin relative to container TopLeft */
  348.     NULL,    /* font pointer or NULL for default */
  349.     "Cancel",       /* pointer to text */
  350.     NULL    /* next IntuiText structure */
  351. };
  352.  
  353. struct Gadget FontCancel = {
  354.     &FontStyleUp,    /* next gadget */
  355.     194,79, /* origin XY of hit box relative to window TopLeft */
  356.     59,15,    /* hit box width and height */
  357.     NULL,    /* gadget flags */
  358.     RELVERIFY+ENDGADGET,    /* activation flags */
  359.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  360.     (APTR)&FontBorder1,     /* gadget border or image to be rendered */
  361.     NULL,    /* alternate imagery for selection */
  362.     &FontIText6,    /* first IntuiText structure */
  363.     NULL,    /* gadget mutual-exclude long word */
  364.     NULL,    /* SpecialInfo structure */
  365.     102,    /* user-definable data */
  366.     NULL    /* pointer to user-definable data */
  367. };
  368.  
  369. SHORT FontBorderVectors2[] = {
  370.     0,0,
  371.     60,0,
  372.     60,16,
  373.     0,16,
  374.     0,0
  375. };
  376. struct Border FontBorder2 = {
  377.     -1,-1,    /* XY origin relative to container TopLeft */
  378.     1,0,JAM1,    /* front pen, back pen and drawmode */
  379.     5,    /* number of XY vectors */
  380.     FontBorderVectors2,    /* pointer to XY vectors */
  381.     NULL    /* next border in list */
  382. };
  383.  
  384. struct IntuiText FontIText7 = {
  385.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  386.     20,4,    /* XY origin relative to container TopLeft */
  387.     NULL,    /* font pointer or NULL for default */
  388.     "OK",   /* pointer to text */
  389.     NULL    /* next IntuiText structure */
  390. };
  391.  
  392. struct Gadget FontOK = {
  393.     &FontCancel,    /* next gadget */
  394.     67,79,    /* origin XY of hit box relative to window TopLeft */
  395.     59,15,    /* hit box width and height */
  396.     NULL,    /* gadget flags */
  397.     RELVERIFY+ENDGADGET,    /* activation flags */
  398.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  399.     (APTR)&FontBorder2,     /* gadget border or image to be rendered */
  400.     NULL,    /* alternate imagery for selection */
  401.     &FontIText7,    /* first IntuiText structure */
  402.     NULL,    /* gadget mutual-exclude long word */
  403.     NULL,    /* SpecialInfo structure */
  404.     101,    /* user-definable data */
  405.     NULL    /* pointer to user-definable data */
  406. };
  407.  
  408. struct Gadget FontSizeDown = {
  409.     &FontOK,    /* next gadget */
  410.     232,66, /* origin XY of hit box relative to window TopLeft */
  411.     18,9,    /* hit box width and height */
  412.     GADGIMAGE,    /* gadget flags */
  413.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  414.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  415.     (APTR)&GadgetDown,      /* gadget border or image to be rendered */
  416.     NULL,    /* alternate imagery for selection */
  417.     NULL,    /* first IntuiText structure */
  418.     NULL,    /* gadget mutual-exclude long word */
  419.     NULL,    /* SpecialInfo structure */
  420.     23,    /* user-definable data */
  421.     NULL    /* pointer to user-definable data */
  422. };
  423.  
  424. struct PropInfo FontFontSizeSInfo = {
  425.     AUTOKNOB+FREEVERT,    /* PropInfo flags */
  426.     -1,-1,    /* horizontal and vertical pot values */
  427.     -1,-1,    /* horizontal and vertical body values */
  428. };
  429.  
  430. struct Image FontImage8 = {
  431.     0,0,    /* XY origin relative to container TopLeft */
  432.     8,48,    /* Image width and height in pixels */
  433.     0,    /* number of bitplanes in Image */
  434.     NULL,    /* pointer to ImageData */
  435.     0x0000,0x0000,    /* PlanePick and PlaneOnOff */
  436.     NULL    /* next Image structure */
  437. };
  438.  
  439. struct Gadget FontSize = {
  440.     &FontSizeDown,    /* next gadget */
  441.     232,14, /* origin XY of hit box relative to window TopLeft */
  442.     16,52,    /* hit box width and height */
  443.     NULL,    /* gadget flags */
  444.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  445.     PROPGADGET+REQGADGET,    /* gadget type flags */
  446.     (APTR)&FontImage8,      /* gadget border or image to be rendered */
  447.     NULL,    /* alternate imagery for selection */
  448.     NULL,    /* first IntuiText structure */
  449.     NULL,    /* gadget mutual-exclude long word */
  450.     (APTR)&FontFontSizeSInfo,       /* SpecialInfo structure */
  451.     22,    /* user-definable data */
  452.     NULL    /* pointer to user-definable data */
  453. };
  454.  
  455. struct Gadget FontSizeUp = {
  456.     &FontSize,    /* next gadget */
  457.     232,5,    /* origin XY of hit box relative to window TopLeft */
  458.     18,9,    /* hit box width and height */
  459.     GADGIMAGE,    /* gadget flags */
  460.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  461.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  462.     (APTR)&GadgetUp,      /* gadget border or image to be rendered */
  463.     NULL,    /* alternate imagery for selection */
  464.     NULL,    /* first IntuiText structure */
  465.     NULL,    /* gadget mutual-exclude long word */
  466.     NULL,    /* SpecialInfo structure */
  467.     21,    /* user-definable data */
  468.     NULL    /* pointer to user-definable data */
  469. };
  470.  
  471. struct PropInfo FontFontFontSInfo = {
  472.     AUTOKNOB+FREEVERT,    /* PropInfo flags */
  473.     -1,-1,    /* horizontal and vertical pot values */
  474.     -1,-1,    /* horizontal and vertical body values */
  475. };
  476.  
  477. struct Image FontImage10 = {
  478.     0,0,    /* XY origin relative to container TopLeft */
  479.     8,48,    /* Image width and height in pixels */
  480.     0,    /* number of bitplanes in Image */
  481.     NULL,    /* pointer to ImageData */
  482.     0x0000,0x0000,    /* PlanePick and PlaneOnOff */
  483.     NULL    /* next Image structure */
  484. };
  485.  
  486. struct Gadget FontFont = {
  487.     &FontSizeUp,    /* next gadget */
  488.     176,14, /* origin XY of hit box relative to window TopLeft */
  489.     16,52,    /* hit box width and height */
  490.     NULL,    /* gadget flags */
  491.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  492.     PROPGADGET+REQGADGET,    /* gadget type flags */
  493.     (APTR)&FontImage10,     /* gadget border or image to be rendered */
  494.     NULL,    /* alternate imagery for selection */
  495.     NULL,    /* first IntuiText structure */
  496.     NULL,    /* gadget mutual-exclude long word */
  497.     (APTR)&FontFontFontSInfo,       /* SpecialInfo structure */
  498.     12,    /* user-definable data */
  499.     NULL    /* pointer to user-definable data */
  500. };
  501.  
  502. struct Gadget FontFontDown = {
  503.     &FontFont,    /* next gadget */
  504.     176,66, /* origin XY of hit box relative to window TopLeft */
  505.     18,9,    /* hit box width and height */
  506.     GADGIMAGE,    /* gadget flags */
  507.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  508.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  509.     (APTR)&GadgetDown,     /* gadget border or image to be rendered */
  510.     NULL,    /* alternate imagery for selection */
  511.     NULL,    /* first IntuiText structure */
  512.     NULL,    /* gadget mutual-exclude long word */
  513.     NULL,    /* SpecialInfo structure */
  514.     13,    /* user-definable data */
  515.     NULL    /* pointer to user-definable data */
  516. };
  517.  
  518. struct Gadget FontFontUp = {
  519.     &FontFontDown,    /* next gadget */
  520.     176,5,    /* origin XY of hit box relative to window TopLeft */
  521.     18,9,    /* hit box width and height */
  522.     GADGIMAGE,    /* gadget flags */
  523.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  524.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  525.     (APTR)&GadgetUp,     /* gadget border or image to be rendered */
  526.     NULL,    /* alternate imagery for selection */
  527.     NULL,    /* first IntuiText structure */
  528.     NULL,    /* gadget mutual-exclude long word */
  529.     NULL,    /* SpecialInfo structure */
  530.     11,    /* user-definable data */
  531.     NULL    /* pointer to user-definable data */
  532. };
  533.  
  534. #define FontGadgetList2 FontFontUp
  535.  
  536. SHORT OutlineVectors3[] = {
  537.     0,0,
  538.     39,0,
  539.     39,69,
  540.     0,69,
  541.     0,0
  542. };
  543. struct Border Outline3 = {
  544.     253, 5,  /* XY origin relative to container TopLeft */
  545.     1,0,JAM1,    /* front pen, back pen and drawmode */
  546.     5,    /* number of XY vectors */
  547.     OutlineVectors3, /* pointer to XY vectors */
  548.     NULL    /* next border in list */
  549. };
  550.  
  551. SHORT OutlineVectors2[] = {
  552.     0,0,
  553.     29,0,
  554.     29,69,
  555.     0,69,
  556.     0,0
  557. };
  558. struct Border Outline2 = {
  559.     197, 5,  /* XY origin relative to container TopLeft */
  560.     1,0,JAM1,    /* front pen, back pen and drawmode */
  561.     5,    /* number of XY vectors */
  562.     OutlineVectors2, /* pointer to XY vectors */
  563.     &Outline3     /* next border in list */
  564. };
  565.  
  566. SHORT OutlineVectors1[] = {
  567.     0,0,
  568.     165,0,
  569.     165,69,
  570.     0,69,
  571.     0,0
  572. };
  573. struct Border Outline1 = {
  574.     5, 5,    /* XY origin relative to container TopLeft */
  575.     1,0,JAM1,    /* front pen, back pen and drawmode */
  576.     5,    /* number of XY vectors */
  577.     OutlineVectors1, /* pointer to XY vectors */
  578.     &Outline2     /* next border in list */
  579. };
  580.  
  581. SHORT Fontbordervectors[] = {
  582.     0,0,
  583.     319,0,
  584.     319,99,
  585.     0,99,
  586.     0,0
  587. };
  588. struct Border Fontborder = {
  589.     0, 0,  /* XY origin relative to container TopLeft */
  590.     1,0,JAM1,    /* front pen, back pen and drawmode */
  591.     5,    /* number of XY vectors */
  592.     Fontbordervectors, /* pointer to XY vectors */
  593.     &Outline1    /* next border in list */
  594. };
  595.  
  596. struct Requester FontRequesterStructure2 = {
  597.     NULL,    /* previous requester (filled in by Intuition) */
  598.     160,50, /* requester XY origin relative to TopLeft of window */
  599.     320,100,    /* requester width and height */
  600.     0,0,    /* relative to these mouse offsets if POINTREL is set */
  601.     &FontGadgetList2,    /* gadget list */
  602.     &Fontborder,   /* box's border */
  603.     NULL,    /* requester text */
  604.     NOISYREQ,   /* requester flags */
  605.     0,    /* back-plane fill pen */
  606.     NULL,    /* leave these alone */
  607.     NULL,    /* custom bitmap if PREDRAWN is set */
  608.     NULL    /* leave this alone */
  609. };
  610.  
  611. SHORT AboutBorderVectors3[] = {
  612.     0,0,
  613.     99,0,
  614.     99,25,
  615.     0,25,
  616.     0,0
  617. };
  618. struct Border AboutBorder3 = {
  619.     -1,-1,    /* XY origin relative to container TopLeft */
  620.     1,0,JAM1,    /* front pen, back pen and drawmode */
  621.     5,    /* number of XY vectors */
  622.     AboutBorderVectors3,    /* pointer to XY vectors */
  623.     NULL    /* next border in list */
  624. };
  625.  
  626. struct IntuiText AboutIText8 = {
  627.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  628.     36,8,    /* XY origin relative to container TopLeft */
  629.     NULL,    /* font pointer or NULL for default */
  630.     "DUH",  /* pointer to text */
  631.     NULL    /* next IntuiText structure */
  632. };
  633.  
  634. struct Gadget AboutGadget5 = {
  635.     NULL,    /* next gadget */
  636.     55,65,    /* origin XY of hit box relative to window TopLeft */
  637.     98,24,    /* hit box width and height */
  638.     NULL,    /* gadget flags */
  639.     RELVERIFY+ENDGADGET,    /* activation flags */
  640.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  641.     (APTR)&AboutBorder3,    /* gadget border or image to be rendered */
  642.     NULL,    /* alternate imagery for selection */
  643.     &AboutIText8,    /* first IntuiText structure */
  644.     NULL,    /* gadget mutual-exclude long word */
  645.     NULL,    /* SpecialInfo structure */
  646.     NULL,    /* user-definable data */
  647.     NULL    /* pointer to user-definable data */
  648. };
  649.  
  650. #define AboutGadgetList3 AboutGadget5
  651.  
  652. struct IntuiText AboutIText13 = {
  653.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  654.     80,43,    /* XY origin relative to container TopLeft */
  655.     NULL,    /* font pointer or NULL for default */
  656.     "fonts.",       /* pointer to text */
  657.     NULL    /* next IntuiText structure */
  658. };
  659.  
  660. struct IntuiText AboutIText12 = {
  661.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  662.     20,34,    /* XY origin relative to container TopLeft */
  663.     NULL,    /* font pointer or NULL for default */
  664.     "This program displays",        /* pointer to text */
  665.     &AboutIText13    /* next IntuiText structure */
  666. };
  667.  
  668. struct IntuiText AboutIText11 = {
  669.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  670.     8,19,    /* XY origin relative to container TopLeft */
  671.     NULL,    /* font pointer or NULL for default */
  672.     "Last revision - 07/12/89",     /* pointer to text */
  673.     &AboutIText12    /* next IntuiText structure */
  674. };
  675.  
  676. struct IntuiText AboutIText10 = {
  677.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  678.     20,10,    /* XY origin relative to container TopLeft */
  679.     NULL,    /* font pointer or NULL for default */
  680.     "by Arthur Johnson Jr.",        /* pointer to text */
  681.     &AboutIText11    /* next IntuiText structure */
  682. };
  683.  
  684. struct IntuiText AboutIText9 = {
  685.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  686.     28,2,    /* XY origin relative to container TopLeft */
  687.     NULL,    /* font pointer or NULL for default */
  688.     "ShowFont 4.0 © 1989",  /* pointer to text */
  689.     &AboutIText10    /* next IntuiText structure */
  690. };
  691.  
  692. #define AboutIntuiTextList3 AboutIText9
  693.  
  694. SHORT Aboutbordervectors[] = {
  695.     0,0,
  696.     207,0,
  697.     207,99,
  698.     0,99,
  699.     0,0
  700. };
  701. struct Border Aboutborder = {
  702.     0, 0,  /* XY origin relative to container TopLeft */
  703.     1,0,JAM1,    /* front pen, back pen and drawmode */
  704.     5,    /* number of XY vectors */
  705.     Aboutbordervectors, /* pointer to XY vectors */
  706.     NULL    /* next border in list */
  707. };
  708.  
  709. struct Requester AboutRequesterStructure3 = {
  710.     NULL,    /* previous requester (filled in by Intuition) */
  711.     216,50, /* requester XY origin relative to TopLeft of window */
  712.     208,100,    /* requester width and height */
  713.     0,0,    /* relative to these mouse offsets if POINTREL is set */
  714.     &AboutGadgetList3,    /* gadget list */
  715.     &Aboutborder,    /* box's border */
  716.     &AboutIntuiTextList3,    /* requester text */
  717.     NULL,    /* requester flags */
  718.     0,    /* back-plane fill pen */
  719.     NULL,    /* leave these alone */
  720.     NULL,    /* custom bitmap if PREDRAWN is set */
  721.     NULL    /* leave this alone */
  722. };
  723.  
  724. SHORT FehBorderVectors4[] = {
  725.     0,0,
  726.     61,0,
  727.     61,21,
  728.     0,21,
  729.     0,0
  730. };
  731. struct Border FehBorder4 = {
  732.     -1,-1,    /* XY origin relative to container TopLeft */
  733.     1,0,JAM1,    /* front pen, back pen and drawmode */
  734.     5,    /* number of XY vectors */
  735.     FehBorderVectors4,    /* pointer to XY vectors */
  736.     NULL    /* next border in list */
  737. };
  738.  
  739. struct IntuiText FehIText14 = {
  740.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  741.     18,6,    /* XY origin relative to container TopLeft */
  742.     NULL,    /* font pointer or NULL for default */
  743.     "FEH",  /* pointer to text */
  744.     NULL    /* next IntuiText structure */
  745. };
  746.  
  747. struct Gadget FehGadget6 = {
  748.     NULL,    /* next gadget */
  749.     70,25,    /* origin XY of hit box relative to window TopLeft */
  750.     60,20,    /* hit box width and height */
  751.     NULL,    /* gadget flags */
  752.     RELVERIFY+ENDGADGET,    /* activation flags */
  753.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  754.     (APTR)&FehBorder4,      /* gadget border or image to be rendered */
  755.     NULL,    /* alternate imagery for selection */
  756.     &FehIText14,    /* first IntuiText structure */
  757.     NULL,    /* gadget mutual-exclude long word */
  758.     NULL,    /* SpecialInfo structure */
  759.     NULL,    /* user-definable data */
  760.     NULL    /* pointer to user-definable data */
  761. };
  762.  
  763. #define FehGadgetList4 FehGadget6
  764.  
  765. UBYTE errormessage[20];
  766. struct IntuiText FehIText15 = {
  767.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  768.     40,5,    /* XY origin relative to container TopLeft */
  769.     NULL,    /* font pointer or NULL for default */
  770.     errormessage,       /* pointer to text */
  771.     NULL    /* next IntuiText structure */
  772. };
  773.  
  774. #define FehIntuiTextList4 FehIText15
  775.  
  776. SHORT Fehbordervectors[] = {
  777.     0,0,
  778.     199,0,
  779.     199,49,
  780.     0,49,
  781.     0,0
  782. };
  783. struct Border Fehborder = {
  784.     0, 0,  /* XY origin relative to container TopLeft */
  785.     1,0,JAM1,    /* front pen, back pen and drawmode */
  786.     5,    /* number of XY vectors */
  787.     Fehbordervectors, /* pointer to XY vectors */
  788.     NULL    /* next border in list */
  789. };
  790.  
  791. struct Requester FehRequesterStructure4 = {
  792.     NULL,    /* previous requester (filled in by Intuition) */
  793.     220,75, /* requester XY origin relative to TopLeft of window */
  794.     200,50, /* requester width and height */
  795.     0,0,    /* relative to these mouse offsets if POINTREL is set */
  796.     &FehGadgetList4,    /* gadget list */
  797.     &Fehborder,   /* box's border */
  798.     &FehIntuiTextList4,    /* requester text */
  799.     NULL,    /* requester flags */
  800.     0,    /* back-plane fill pen */
  801.     NULL,    /* leave these alone */
  802.     NULL,    /* custom bitmap if PREDRAWN is set */
  803.     NULL    /* leave this alone */
  804. };
  805.  
  806. SHORT ScreenBorderVectors5[] = {
  807.     0,0,
  808.     79,0,
  809.     79,12,
  810.     0,12,
  811.     0,0
  812. };
  813. struct Border ScreenBorder5 = {
  814.     -1,-1,    /* XY origin relative to container TopLeft */
  815.     1,0,JAM1,    /* front pen, back pen and drawmode */
  816.     5,    /* number of XY vectors */
  817.     ScreenBorderVectors5,    /* pointer to XY vectors */
  818.     NULL    /* next border in list */
  819. };
  820.  
  821. struct IntuiText ScreenIText16 = {
  822.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  823.     3,2,    /* XY origin relative to container TopLeft */
  824.     NULL,    /* font pointer or NULL for default */
  825.     "32 colors",    /* pointer to text */
  826.     NULL    /* next IntuiText structure */
  827. };
  828.  
  829. struct Gadget ScreenGadget17 = {
  830.     NULL,    /* next gadget */
  831.     206,72, /* origin XY of hit box relative to window TopLeft */
  832.     78,11,    /* hit box width and height */
  833.     GADGDISABLED,    /* gadget flags */
  834.     RELVERIFY, /* activation flags */
  835.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  836.     (APTR)&ScreenBorder5,   /* gadget border or image to be rendered */
  837.     NULL,    /* alternate imagery for selection */
  838.     &ScreenIText16, /* first IntuiText structure */
  839.     NULL,    /* gadget mutual-exclude long word */
  840.     NULL,    /* SpecialInfo structure */
  841.     5,   /* user-definable data */
  842.     NULL       /* pointer to user-definable data */
  843. };
  844.  
  845. SHORT ScreenBorderVectors6[] = {
  846.     0,0,
  847.     79,0,
  848.     79,12,
  849.     0,12,
  850.     0,0
  851. };
  852. struct Border ScreenBorder6 = {
  853.     -1,-1,    /* XY origin relative to container TopLeft */
  854.     1,0,JAM1,    /* front pen, back pen and drawmode */
  855.     5,    /* number of XY vectors */
  856.     ScreenBorderVectors6,    /* pointer to XY vectors */
  857.     NULL    /* next border in list */
  858. };
  859.  
  860. struct IntuiText ScreenIText17 = {
  861.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  862.     3,2,    /* XY origin relative to container TopLeft */
  863.     NULL,    /* font pointer or NULL for default */
  864.     "16 colors",    /* pointer to text */
  865.     NULL    /* next IntuiText structure */
  866. };
  867.  
  868. struct Gadget ScreenGadget16 = {
  869.     &ScreenGadget17,    /* next gadget */
  870.     206,56, /* origin XY of hit box relative to window TopLeft */
  871.     78,11,    /* hit box width and height */
  872.     NULL,    /* gadget flags */
  873.     RELVERIFY, /* activation flags */
  874.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  875.     (APTR)&ScreenBorder6,   /* gadget border or image to be rendered */
  876.     NULL,    /* alternate imagery for selection */
  877.     &ScreenIText17, /* first IntuiText structure */
  878.     NULL,    /* gadget mutual-exclude long word */
  879.     NULL,    /* SpecialInfo structure */
  880.     4,   /* user-definable data */
  881.     NULL       /* pointer to user-definable data */
  882. };
  883.  
  884. SHORT ScreenBorderVectors7[] = {
  885.     0,0,
  886.     79,0,
  887.     79,12,
  888.     0,12,
  889.     0,0
  890. };
  891. struct Border ScreenBorder7 = {
  892.     -1,-1,    /* XY origin relative to container TopLeft */
  893.     1,0,JAM1,    /* front pen, back pen and drawmode */
  894.     5,    /* number of XY vectors */
  895.     ScreenBorderVectors7,    /* pointer to XY vectors */
  896.     NULL    /* next border in list */
  897. };
  898.  
  899. struct IntuiText ScreenIText18 = {
  900.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  901.     3,2,    /* XY origin relative to container TopLeft */
  902.     NULL,    /* font pointer or NULL for default */
  903.     " 8 colors",    /* pointer to text */
  904.     NULL    /* next IntuiText structure */
  905. };
  906.  
  907. struct Gadget ScreenGadget15 = {
  908.     &ScreenGadget16,    /* next gadget */
  909.     206,40, /* origin XY of hit box relative to window TopLeft */
  910.     78,11,    /* hit box width and height */
  911.     NULL,    /* gadget flags */
  912.     RELVERIFY, /* activation flags */
  913.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  914.     (APTR)&ScreenBorder7,   /* gadget border or image to be rendered */
  915.     NULL,    /* alternate imagery for selection */
  916.     &ScreenIText18, /* first IntuiText structure */
  917.     NULL,    /* gadget mutual-exclude long word */
  918.     NULL,    /* SpecialInfo structure */
  919.     3,   /* user-definable data */
  920.     NULL       /* pointer to user-definable data */
  921. };
  922.  
  923. SHORT ScreenBorderVectors8[] = {
  924.     0,0,
  925.     79,0,
  926.     79,12,
  927.     0,12,
  928.     0,0
  929. };
  930. struct Border ScreenBorder8 = {
  931.     -1,-1,    /* XY origin relative to container TopLeft */
  932.     1,0,JAM1,    /* front pen, back pen and drawmode */
  933.     5,    /* number of XY vectors */
  934.     ScreenBorderVectors8,    /* pointer to XY vectors */
  935.     NULL    /* next border in list */
  936. };
  937.  
  938. struct IntuiText ScreenIText19 = {
  939.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  940.     3,2,    /* XY origin relative to container TopLeft */
  941.     NULL,    /* font pointer or NULL for default */
  942.     " 4 colors",    /* pointer to text */
  943.     NULL    /* next IntuiText structure */
  944. };
  945.  
  946. struct Gadget ScreenGadget14 = {
  947.     &ScreenGadget15,    /* next gadget */
  948.     206,24, /* origin XY of hit box relative to window TopLeft */
  949.     78,11,    /* hit box width and height */
  950.     SELECTED,    /* gadget flags */
  951.     RELVERIFY, /* activation flags */
  952.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  953.     (APTR)&ScreenBorder8,   /* gadget border or image to be rendered */
  954.     NULL,    /* alternate imagery for selection */
  955.     &ScreenIText19, /* first IntuiText structure */
  956.     NULL,    /* gadget mutual-exclude long word */
  957.     NULL,    /* SpecialInfo structure */
  958.     2,   /* user-definable data */
  959.     NULL       /* pointer to user-definable data */
  960. };
  961.  
  962. SHORT ScreenBorderVectors9[] = {
  963.     0,0,
  964.     79,0,
  965.     79,12,
  966.     0,12,
  967.     0,0
  968. };
  969. struct Border ScreenBorder9 = {
  970.     -1,-1,    /* XY origin relative to container TopLeft */
  971.     1,0,JAM1,    /* front pen, back pen and drawmode */
  972.     5,    /* number of XY vectors */
  973.     ScreenBorderVectors9,    /* pointer to XY vectors */
  974.     NULL    /* next border in list */
  975. };
  976.  
  977. struct IntuiText ScreenIText20 = {
  978.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  979.     3,2,    /* XY origin relative to container TopLeft */
  980.     NULL,    /* font pointer or NULL for default */
  981.     " 2 colors",    /* pointer to text */
  982.     NULL    /* next IntuiText structure */
  983. };
  984.  
  985. struct Gadget ScreenGadget13 = {
  986.     &ScreenGadget14,    /* next gadget */
  987.     206,8,    /* origin XY of hit box relative to window TopLeft */
  988.     78,11,    /* hit box width and height */
  989.     NULL,    /* gadget flags */
  990.     RELVERIFY, /* activation flags */
  991.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  992.     (APTR)&ScreenBorder9,   /* gadget border or image to be rendered */
  993.     NULL,    /* alternate imagery for selection */
  994.     &ScreenIText20, /* first IntuiText structure */
  995.     NULL,    /* gadget mutual-exclude long word */
  996.     NULL,    /* SpecialInfo structure */
  997.     1,    /* user-definable data */
  998.     NULL       /* pointer to user-definable data */
  999. };
  1000.  
  1001. SHORT ScreenBorderVectors10[] = {
  1002.     0,0,
  1003.     79,0,
  1004.     79,12,
  1005.     0,12,
  1006.     0,0
  1007. };
  1008. struct Border ScreenBorder10 = {
  1009.     -1,-1,    /* XY origin relative to container TopLeft */
  1010.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1011.     5,    /* number of XY vectors */
  1012.     ScreenBorderVectors10,    /* pointer to XY vectors */
  1013.     NULL    /* next border in list */
  1014. };
  1015.  
  1016. struct IntuiText ScreenIText21 = {
  1017.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1018.     3,2,    /* XY origin relative to container TopLeft */
  1019.     NULL,    /* font pointer or NULL for default */
  1020.     "640 x 400",    /* pointer to text */
  1021.     NULL    /* next IntuiText structure */
  1022. };
  1023.  
  1024. struct Gadget ScreenGadget12 = {
  1025.     &ScreenGadget13,    /* next gadget */
  1026.     16,71,    /* origin XY of hit box relative to window TopLeft */
  1027.     78,11,    /* hit box width and height */
  1028.     NULL,    /* gadget flags */
  1029.     RELVERIFY, /* activation flags */
  1030.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  1031.     (APTR)&ScreenBorder10,  /* gadget border or image to be rendered */
  1032.     NULL,    /* alternate imagery for selection */
  1033.     &ScreenIText21, /* first IntuiText structure */
  1034.     NULL,    /* gadget mutual-exclude long word */
  1035.     NULL,    /* SpecialInfo structure */
  1036.     14,   /* user-definable data */
  1037.     NULL      /* pointer to user-definable data */
  1038. };
  1039.  
  1040. SHORT ScreenBorderVectors11[] = {
  1041.     0,0,
  1042.     79,0,
  1043.     79,12,
  1044.     0,12,
  1045.     0,0
  1046. };
  1047. struct Border ScreenBorder11 = {
  1048.     -1,-1,    /* XY origin relative to container TopLeft */
  1049.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1050.     5,    /* number of XY vectors */
  1051.     ScreenBorderVectors11,    /* pointer to XY vectors */
  1052.     NULL    /* next border in list */
  1053. };
  1054.  
  1055. struct IntuiText ScreenIText22 = {
  1056.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1057.     3,2,    /* XY origin relative to container TopLeft */
  1058.     NULL,    /* font pointer or NULL for default */
  1059.     "640 x 200",    /* pointer to text */
  1060.     NULL    /* next IntuiText structure */
  1061. };
  1062.  
  1063. struct Gadget ScreenGadget11 = {
  1064.     &ScreenGadget12,    /* next gadget */
  1065.     16,50,    /* origin XY of hit box relative to window TopLeft */
  1066.     78,11,    /* hit box width and height */
  1067.     SELECTED,    /* gadget flags */
  1068.     RELVERIFY, /* activation flags */
  1069.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  1070.     (APTR)&ScreenBorder11,  /* gadget border or image to be rendered */
  1071.     NULL,    /* alternate imagery for selection */
  1072.     &ScreenIText22, /* first IntuiText structure */
  1073.     NULL,    /* gadget mutual-exclude long word */
  1074.     NULL,    /* SpecialInfo structure */
  1075.     13,   /* user-definable data */
  1076.     NULL      /* pointer to user-definable data */
  1077. };
  1078.  
  1079. SHORT ScreenBorderVectors12[] = {
  1080.     0,0,
  1081.     79,0,
  1082.     79,12,
  1083.     0,12,
  1084.     0,0
  1085. };
  1086. struct Border ScreenBorder12 = {
  1087.     -1,-1,    /* XY origin relative to container TopLeft */
  1088.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1089.     5,    /* number of XY vectors */
  1090.     ScreenBorderVectors12,    /* pointer to XY vectors */
  1091.     NULL    /* next border in list */
  1092. };
  1093.  
  1094. struct IntuiText ScreenIText23 = {
  1095.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1096.     3,2,    /* XY origin relative to container TopLeft */
  1097.     NULL,    /* font pointer or NULL for default */
  1098.     "320 x 400",    /* pointer to text */
  1099.     NULL    /* next IntuiText structure */
  1100. };
  1101.  
  1102. struct Gadget ScreenGadget10 = {
  1103.     &ScreenGadget11,    /* next gadget */
  1104.     16,29,    /* origin XY of hit box relative to window TopLeft */
  1105.     78,11,    /* hit box width and height */
  1106.     NULL,    /* gadget flags */
  1107.     RELVERIFY, /* activation flags */
  1108.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  1109.     (APTR)&ScreenBorder12,  /* gadget border or image to be rendered */
  1110.     NULL,    /* alternate imagery for selection */
  1111.     &ScreenIText23, /* first IntuiText structure */
  1112.     NULL,    /* gadget mutual-exclude long word */
  1113.     NULL,    /* SpecialInfo structure */
  1114.     12,   /* user-definable data */
  1115.     NULL      /* pointer to user-definable data */
  1116. };
  1117.  
  1118. SHORT ScreenBorderVectors13[] = {
  1119.     0,0,
  1120.     79,0,
  1121.     79,12,
  1122.     0,12,
  1123.     0,0
  1124. };
  1125. struct Border ScreenBorder13 = {
  1126.     -1,-1,    /* XY origin relative to container TopLeft */
  1127.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1128.     5,    /* number of XY vectors */
  1129.     ScreenBorderVectors13,    /* pointer to XY vectors */
  1130.     NULL    /* next border in list */
  1131. };
  1132.  
  1133. struct IntuiText ScreenIText24 = {
  1134.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1135.     3,2,    /* XY origin relative to container TopLeft */
  1136.     NULL,    /* font pointer or NULL for default */
  1137.     "320 x 200",    /* pointer to text */
  1138.     NULL    /* next IntuiText structure */
  1139. };
  1140.  
  1141. struct Gadget ScreenGadget9 = {
  1142.     &ScreenGadget10,    /* next gadget */
  1143.     16,8,    /* origin XY of hit box relative to window TopLeft */
  1144.     78,11,    /* hit box width and height */
  1145.     NULL,    /* gadget flags */
  1146.     RELVERIFY, /* activation flags */
  1147.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  1148.     (APTR)&ScreenBorder13,  /* gadget border or image to be rendered */
  1149.     NULL,    /* alternate imagery for selection */
  1150.     &ScreenIText24, /* first IntuiText structure */
  1151.     NULL,    /* gadget mutual-exclude long word */
  1152.     NULL,    /* SpecialInfo structure */
  1153.     11,   /* user-definable data */
  1154.     NULL      /* pointer to user-definable data */
  1155. };
  1156.  
  1157. SHORT ScreenBorderVectors14[] = {
  1158.     0,0,
  1159.     60,0,
  1160.     60,16,
  1161.     0,16,
  1162.     0,0
  1163. };
  1164. struct Border ScreenBorder14 = {
  1165.     -1,-1,    /* XY origin relative to container TopLeft */
  1166.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1167.     5,    /* number of XY vectors */
  1168.     ScreenBorderVectors14,    /* pointer to XY vectors */
  1169.     NULL    /* next border in list */
  1170. };
  1171.  
  1172. struct IntuiText ScreenIText25 = {
  1173.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1174.     6,4,    /* XY origin relative to container TopLeft */
  1175.     NULL,    /* font pointer or NULL for default */
  1176.     "Cancel",       /* pointer to text */
  1177.     NULL    /* next IntuiText structure */
  1178. };
  1179.  
  1180. struct Gadget ScreenCancel = {
  1181.     &ScreenGadget9, /* next gadget */
  1182.     123,62, /* origin XY of hit box relative to window TopLeft */
  1183.     59,15,    /* hit box width and height */
  1184.     NULL,    /* gadget flags */
  1185.     RELVERIFY+ENDGADGET,    /* activation flags */
  1186.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  1187.     (APTR)&ScreenBorder14,  /* gadget border or image to be rendered */
  1188.     NULL,    /* alternate imagery for selection */
  1189.     &ScreenIText25, /* first IntuiText structure */
  1190.     NULL,    /* gadget mutual-exclude long word */
  1191.     NULL,    /* SpecialInfo structure */
  1192.     102,    /* user-definable data */
  1193.     NULL    /* pointer to user-definable data */
  1194. };
  1195.  
  1196. SHORT ScreenBorderVectors15[] = {
  1197.     0,0,
  1198.     60,0,
  1199.     60,16,
  1200.     0,16,
  1201.     0,0
  1202. };
  1203. struct Border ScreenBorder15 = {
  1204.     -1,-1,    /* XY origin relative to container TopLeft */
  1205.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1206.     5,    /* number of XY vectors */
  1207.     ScreenBorderVectors15,    /* pointer to XY vectors */
  1208.     NULL    /* next border in list */
  1209. };
  1210.  
  1211. struct IntuiText ScreenIText26 = {
  1212.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1213.     20,4,    /* XY origin relative to container TopLeft */
  1214.     NULL,    /* font pointer or NULL for default */
  1215.     "OK",   /* pointer to text */
  1216.     NULL    /* next IntuiText structure */
  1217. };
  1218.  
  1219. struct Gadget ScreenOK = {
  1220.     &ScreenCancel,    /* next gadget */
  1221.     123,14, /* origin XY of hit box relative to window TopLeft */
  1222.     59,15,    /* hit box width and height */
  1223.     NULL,    /* gadget flags */
  1224.     RELVERIFY+ENDGADGET,    /* activation flags */
  1225.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  1226.     (APTR)&ScreenBorder15,  /* gadget border or image to be rendered */
  1227.     NULL,    /* alternate imagery for selection */
  1228.     &ScreenIText26, /* first IntuiText structure */
  1229.     NULL,    /* gadget mutual-exclude long word */
  1230.     NULL,    /* SpecialInfo structure */
  1231.     101,    /* user-definable data */
  1232.     NULL    /* pointer to user-definable data */
  1233. };
  1234.  
  1235. #define ScreenGadgetList5 ScreenOK
  1236.  
  1237. SHORT Screenbordervectors[] = {
  1238.     0,0,
  1239.     299,0,
  1240.     299,89,
  1241.     0,89,
  1242.     0,0
  1243. };
  1244. struct Border Screenborder = {
  1245.     0, 0,  /* XY origin relative to container TopLeft */
  1246.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1247.     5,    /* number of XY vectors */
  1248.     Screenbordervectors, /* pointer to XY vectors */
  1249.     NULL    /* next border in list */
  1250. };
  1251.  
  1252. struct Requester ScreenRequesterStructure5 = {
  1253.     NULL,    /* previous requester (filled in by Intuition) */
  1254.     170,55, /* requester XY origin relative to TopLeft of window */
  1255.     300,90, /* requester width and height */
  1256.     0,0,    /* relative to these mouse offsets if POINTREL is set */
  1257.     &ScreenGadgetList5,    /* gadget list */
  1258.     &Screenborder,     /* box's border */
  1259.     NULL,    /* requester text */
  1260.     NOISYREQ,   /* requester flags */
  1261.     0,    /* back-plane fill pen */
  1262.     NULL,    /* leave these alone */
  1263.     NULL,    /* custom bitmap if PREDRAWN is set */
  1264.     NULL    /* leave this alone */
  1265. };
  1266.  
  1267. UBYTE DirDirNewDirSIBuff[30];
  1268. struct StringInfo DirDirNewDirSInfo = {
  1269.     DirDirNewDirSIBuff,    /* buffer where text will be edited */
  1270.     NULL,    /* optional undo buffer */
  1271.     0,    /* character position in buffer */
  1272.     30,    /* maximum number of characters to allow */
  1273.     0,    /* first displayed character buffer position */
  1274.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  1275.     0,    /* Rastport of gadget */
  1276.     0,    /* initial value for integer gadgets */
  1277.     NULL    /* alternate keymap (fill in if you set the flag) */
  1278. };
  1279.  
  1280. SHORT DirBorderVectors16[] = {
  1281.     0,0,
  1282.     159,0,
  1283.     159,11,
  1284.     0,11,
  1285.     0,0
  1286. };
  1287. struct Border DirBorder16 = {
  1288.     -2,-2,    /* XY origin relative to container TopLeft */
  1289.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1290.     5,    /* number of XY vectors */
  1291.     DirBorderVectors16,    /* pointer to XY vectors */
  1292.     NULL    /* next border in list */
  1293. };
  1294.  
  1295. struct Gadget DirNewDir = {
  1296.     NULL,    /* next gadget */
  1297.     22,13,    /* origin XY of hit box relative to window TopLeft */
  1298.     156,10, /* hit box width and height */
  1299.     NULL,    /* gadget flags */
  1300.     NULL,    /* activation flags */
  1301.     STRGADGET + REQGADGET,      /* gadget type flags */
  1302.     (APTR)&DirBorder16,     /* gadget border or image to be rendered */
  1303.     NULL,    /* alternate imagery for selection */
  1304.     NULL,    /* first IntuiText structure */
  1305.     NULL,    /* gadget mutual-exclude long word */
  1306.     (APTR)&DirDirNewDirSInfo,       /* SpecialInfo structure */
  1307.     1,    /* user-definable data */
  1308.     NULL    /* pointer to user-definable data */
  1309. };
  1310.  
  1311. SHORT DirBorderVectors17[] = {
  1312.     0,0,
  1313.     60,0,
  1314.     60,16,
  1315.     0,16,
  1316.     0,0
  1317. };
  1318. struct Border DirBorder17 = {
  1319.     -1,-1,    /* XY origin relative to container TopLeft */
  1320.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1321.     5,    /* number of XY vectors */
  1322.     DirBorderVectors17,    /* pointer to XY vectors */
  1323.     NULL    /* next border in list */
  1324. };
  1325.  
  1326. struct IntuiText DirIText27 = {
  1327.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1328.     6,4,    /* XY origin relative to container TopLeft */
  1329.     NULL,    /* font pointer or NULL for default */
  1330.     "Cancel",       /* pointer to text */
  1331.     NULL    /* next IntuiText structure */
  1332. };
  1333.  
  1334. struct Gadget DirCancel = {
  1335.     &DirNewDir,    /* next gadget */
  1336.     119,28, /* origin XY of hit box relative to window TopLeft */
  1337.     59,15,    /* hit box width and height */
  1338.     NULL,    /* gadget flags */
  1339.     RELVERIFY+ENDGADGET,    /* activation flags */
  1340.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  1341.     (APTR)&DirBorder17,     /* gadget border or image to be rendered */
  1342.     NULL,    /* alternate imagery for selection */
  1343.     &DirIText27,    /* first IntuiText structure */
  1344.     NULL,    /* gadget mutual-exclude long word */
  1345.     NULL,    /* SpecialInfo structure */
  1346.     102,    /* user-definable data */
  1347.     NULL    /* pointer to user-definable data */
  1348. };
  1349.  
  1350. SHORT DirBorderVectors19[] = {
  1351.     0,0,
  1352.     60,0,
  1353.     60,16,
  1354.     0,16,
  1355.     0,0
  1356. };
  1357. struct Border DirBorder19 = {
  1358.     -1,-1,    /* XY origin relative to container TopLeft */
  1359.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1360.     5,    /* number of XY vectors */
  1361.     DirBorderVectors19,    /* pointer to XY vectors */
  1362.     NULL    /* next border in list */
  1363. };
  1364.  
  1365. struct IntuiText DirIText29 = {
  1366.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1367.     20,4,    /* XY origin relative to container TopLeft */
  1368.     NULL,    /* font pointer or NULL for default */
  1369.     "OK",   /* pointer to text */
  1370.     NULL    /* next IntuiText structure */
  1371. };
  1372.  
  1373. struct Gadget DirOK = {
  1374.     &DirCancel,    /* next gadget */
  1375.     22,28,    /* origin XY of hit box relative to window TopLeft */
  1376.     59,15,    /* hit box width and height */
  1377.     NULL,    /* gadget flags */
  1378.     RELVERIFY+ENDGADGET,    /* activation flags */
  1379.     BOOLGADGET+REQGADGET,    /* gadget type flags */
  1380.     (APTR)&DirBorder19,     /* gadget border or image to be rendered */
  1381.     NULL,    /* alternate imagery for selection */
  1382.     &DirIText29,    /* first IntuiText structure */
  1383.     NULL,    /* gadget mutual-exclude long word */
  1384.     NULL,    /* SpecialInfo structure */
  1385.     101,    /* user-definable data */
  1386.     NULL    /* pointer to user-definable data */
  1387. };
  1388.  
  1389. #define DirGadgetList6 DirOK
  1390.  
  1391. struct IntuiText DirIText30 = {
  1392.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  1393.     21,3,    /* XY origin relative to container TopLeft */
  1394.     NULL,    /* font pointer or NULL for default */
  1395.     "New FONTS: dir?",     /* pointer to text */
  1396.     NULL    /* next IntuiText structure */
  1397. };
  1398.  
  1399. #define DirIntuiTextList6 DirIText30
  1400.  
  1401. SHORT Dirbordervectors[] = {
  1402.     0,0,
  1403.     199,0,
  1404.     199,49,
  1405.     0,49,
  1406.     0,0
  1407. };
  1408. struct Border Dirborder = {
  1409.     0, 0,  /* XY origin relative to container TopLeft */
  1410.     1,0,JAM1,    /* front pen, back pen and drawmode */
  1411.     5,    /* number of XY vectors */
  1412.     Dirbordervectors, /* pointer to XY vectors */
  1413.     NULL    /* next border in list */
  1414. };
  1415.  
  1416. struct Requester DirRequesterStructure6 = {
  1417.     NULL,    /* previous requester (filled in by Intuition) */
  1418.     220,75, /* requester XY origin relative to TopLeft of window */
  1419.     200,50, /* requester width and height */
  1420.     0,0,    /* relative to these mouse offsets if POINTREL is set */
  1421.     &DirGadgetList6,    /* gadget list */
  1422.     &Dirborder,   /* box's border */
  1423.     &DirIntuiTextList6,    /* requester text */
  1424.     NOISYREQ,   /* requester flags */
  1425.     0,    /* back-plane fill pen */
  1426.     NULL,    /* leave these alone */
  1427.     NULL,    /* custom bitmap if PREDRAWN is set */
  1428.     NULL    /* leave this alone */
  1429. };
  1430.